package com.ctrip.ibu.member.client.module;



/**
 * @author he.shaorong
 * @create 2023/3/27 19:38
 * @since 1.0.0
 */
public class MessageInfo {
    private String messageJson;

    private String messageId;

    private String topic;

    private boolean isAllFinished = false;

    private boolean supportThisTopic = true;

    public MessageInfo() {
    }

    public MessageInfo(String messageJson, String messageId) {
        this.messageJson = messageJson;
        this.messageId = messageId;
    }

    public String getMessageJson() {
        return messageJson;
    }

    public void setMessageJson(String messageJson) {
        this.messageJson = messageJson;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public boolean isAllFinished() {
        return isAllFinished;
    }

    public void setAllFinished(boolean allFinished) {
        isAllFinished = allFinished;
    }

    public boolean isSupportThisTopic() {
        return supportThisTopic;
    }

    public void setSupportThisTopic(boolean supportThisTopic) {
        this.supportThisTopic = supportThisTopic;
    }

    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    @Override
    public String toString() {
        return "topic: " + topic +
                "\n messageJson: " + messageJson +
                "\n messageId: " + messageId +
                "\n isAllFinished: " + isAllFinished +
                "\n supportThisTopic: " + supportThisTopic;
    }
}
